import java.util.Scanner;

//题目：输入三个整数x,y,z，请把这三个数由小到大输出。
public class Test15 {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int[] arr = new int[3];
        for (int i = 0; i < 3; i++) {
            int j = i + 1;
            System.out.println("请输入第" + j + "个数");
            arr[i] = console.nextInt();
        }
        for (int i = 0; i < 3; i++) {
            for (int j = i + 1; j < 3; j++) {
                if (arr[i] > arr[j]) {
                    int t = arr[i];
                    arr[i] = arr[j];
                    arr[j] = t;
                }
            }
        }
        for (int i = 0; i < 3; i++) {
            System.out.print(arr[i] + " ");
        }
        console.close();
    }
}